package com.kc.gb.device.plugins.strip.dto;

import com.kc.gb.feign.strip.sopport.enums.StripLightOnOff;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class StripLightState {
    int lightNo;
    StripLightOnOff lightStatus;
    int color = 28;

    /** 默认构造方法 **/
    public StripLightState(int lightNo) {
        this.lightNo = lightNo;
        this.lightStatus = StripLightOnOff.LIGHT_OFF;
    }

    public StripLightState turnOn(){
        this.lightStatus = StripLightOnOff.LIGHT_ON;
        return this;
    }

    public StripLightState turnOff(){
        this.lightStatus = StripLightOnOff.LIGHT_OFF;
        return this;
    }
}
